label: Don't create an unnecessary attribute list
authorTimm Bäder <mail@baedert.org>
Tue, 14 Apr 2020 09:11:23 +0000 (11:11 +0200)
committerTimm Bäder <mail@baedert.org>
Fri, 17 Apr 2020 13:21:00 +0000 (15:21 +0200)
gtk/gtklabel.c

index 9b75acfc04a353f4d7113a01d6abcb7d357213ff..4bf1e685ae115c2929d23b3816dfb92cb31d0f6d 100644 (file)
@@ -2848,8 +2848,6 @@ gtk_label_update_layout_attributes (GtkLabel      *self,
           pango_attr_list_unref (link_attrs);
         }
     }
-  else if (self->markup_attrs && self->attrs)
-    attrs = pango_attr_list_new ();
   else
     attrs = NULL;